package com.joysuch.wwyt.patrol.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.util.Date;

import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author heqifeng
 * @since 2022-03-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_patrol_record")
@ApiModel(value="PatrolRecord对象", description="")
public class PatrolRecord extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "关联任务id")
    private Long taskId;

    @ApiModelProperty(value = "关联计划id")
    private Long planId;

    @ApiModelProperty(value = "检查点id")
    private Long pointId;

    @ApiModelProperty(value = "检查点名称")
    private String pointName;

    @ApiModelProperty(value = "检查开始时间")
    private Date checkStartTime;

    @ApiModelProperty(value = "检查完成时间")
    private Date checkEndTime;

    @ApiModelProperty(value = "检查人")
    private Long checkUserId;

    @ApiModelProperty(value = "上报方式（A：app,W:web）")
    private String reportWay;

    @ApiModelProperty(value = "检查结果")
    private String checkResult;

    @ApiModelProperty(value = "该record下item的异常个数")
    private Integer exceptCount;

    @ApiModelProperty(value = "签到方式")
    private String verifyType;

    @ApiModelProperty(value = "签到状态")
    private String verifyState;

    @ApiModelProperty(value = "签到位置（人员定位）")
    private String verifyLocation;

}
